<form action="{{$url}}" method="POST">
    @csrf
    @isset($method)
        @method($method)
    @endisset
    <div class="modal fade {{$id}}" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">

                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                    </button>
                    <h4 class="modal-title" id="myModalLabel">{{$title}}</h4>
                </div>
                <div class="modal-body">
                    {{$slot}}
                    <div class="clearfix"></div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="submit" class="btn btn-primary">确认添加</button>
                </div>

            </div>
        </div>
    </div>
</form>
